package com.serviceImpl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.dao.manager.UserMapper;
import com.pojo.User;
import com.service.LoginService;

@Service
public class LoginServiceImp implements LoginService {

	@Resource
	private UserMapper userMapper;

	@Override
	public User findByUsername(String username) {
		try {
			System.out.println(1);
			return userMapper.queryUserFromUsername(username);
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
	}
}